package Day4231;

import java.util.ArrayList;

/**
 * @author: Li fei
 * @date: 2018-04-28
 * @time: 15:45
 */
public class JiHe {
    public static void main(String[] args){
        ArrayList<String> list = new ArrayList<>();
        list.add("你是");
        list.add("大");
        list.add("笨");
        list.add("蛋");
        System.out.println("长度"+list.size());
        System.out.println(list.get(0));
        System.out.println(list.get(1));
        System.out.println(list.get(2));
        System.out.println(list.get(3));
        for (int i = 0; i < list.size(); i++) {
            String str = list.get(i);
            System.out.print(str);
        }

    }
}
